package com.itheima.dubbo.samples.customer;

import com.itheima.dubbo.samples.api.EchoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EchoConsumer {

    @Autowired
    private EchoService echoService;

    public String echo(String name){
        return echoService.echo(name);
    }
}
